package com.jxkj.controller;

import com.jxkj.interceptor.CartInterceptor;
import com.jxkj.vo.UserInfoVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 项目: shop-car
 * <p>
 * 功能描述: 购物车请求
 *
 * @author: WuChengXing
 * @create: 2020-08-03 23:48
 **/
@RestController
public class CartController {

    @GetMapping("/hello")
    public String hello(){
        UserInfoVO userInfoVO = CartInterceptor.threadLocal.get();
        return "hello: " + userInfoVO.getUserKey();
    }
}
